package com.baizhi.mall.service.impl;

import com.baizhi.mall.entity.mysql.BzFileDO;
import com.baizhi.mall.mapper.BzFileMapper;
import com.baizhi.mall.service.IBzFileService;
import com.baizhi.mall.util.PageUtils;
import com.baizhi.mall.util.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bz
 * @since 2021-05-19
 */
@Service
public class BzFileServiceImpl extends ServiceImpl<BzFileMapper, BzFileDO> implements IBzFileService {

    @Override
    public PageUtils queryAllFileByPage(Map<String, Object> param) {
        IPage<BzFileDO> fileDOIPage=this.baseMapper.selectPage(new Query<BzFileDO>().getPage(param),
        new QueryWrapper<BzFileDO>().like("old-name","g"));
        return new PageUtils(fileDOIPage);
    }
}
